import 'package:flutter/material.dart';

import '../../constant/color.dart';

class ButtonWidget extends StatelessWidget {
  const ButtonWidget(this.name, {super.key});
  final String name;

  @override
  Widget build(BuildContext context) {
    return InkWell(
      onTap: () {
        print("123");
      },
      child: Container(
        width: double.infinity,
        padding: const EdgeInsets.symmetric(vertical: 16.0),
        decoration: BoxDecoration(
          color: ThemeColors.mainColor,
          borderRadius: BorderRadius.circular(6),
        ),
        child: Text(
          name,
          textAlign: TextAlign.center,
          style: const TextStyle(
            color: Colors.white,
          ),
        ),
      ),
    );
  }
}
